package main

import (
	"fmt"
	"xorm.io/xorm"
)

func insertOne(user User, engine *xorm.Engine) {
	res, err := engine.InsertOne(&user)
	if err != nil || res < 1 {
		println("插入失败")
		return
	}
	fmt.Println("插入成功")
}
